Mine did that when they got some fungus infection. If an animal started to behave like this, it has only 1-2 days left at best. I had to threat the whole tank with antibiotics (enrofloxacin), as because of the bad water parameters lots of fungus has grown inside the weakened animals and started to appear on their bodies too.