Those general type of body movements/actions usually indicate a general external body parasite. Depending on how your tank is setup, you have several options. From a simple 0.3% salt water bath, to a little more aggressive 3% salt water dip. Those are usually the safest and generally effective against mild parasitic infections. If you want to go another step or two higher, than you would have to use products like Quick Cure, or straight formalin. First and foremost though, I would increase your water changes and make sure your tank is clean. Let them go for a few days after that and see how they do. If no improvement, you can start with either salt treatment. That usually takes care of it. Keep us updated along with any treatments you may chose to use.
-Ryan