split up index into groups