Vortex rings in a cylinder and rearrangements