Fish do not sleep in the sense that we do with full unconsciousness. They just shut down extra brain activity, but they likely keep "swimmming" or doing that twitch thing to keep themselves suspended.
It's probably the equivalent to day dreaming for us... where your eyes are open and you know whats going on but your not really paying attention. However, if I bear were coming to attack you, you could still quickly react.