My corys do the same thing, they like to swim a lot, then they get tired and rest. Corys are very active fish. Feeding time is crazy. during night they rest on the bottom and sometimes during daylight also when they haven't had food in a long time and stop looking for it