My splendid did the same when he was first introduced into my tank, i think he was just getting acclimatised and getting used to his new tank mates. He also didn't eat for the first few days, but now he's settled in he swims around with my oscar and my bichir all day with no problems.