On the piston and sloshing modes in moonpools