Moving gems into groups