Usually that happend due to poor water parameters, they try to jump out. What are your water paramaters?
i think they are going to lay eggs and something is bothering them, but be sure that their body does not contain any worms sticking on the fish