Could we use `in_groups_of` as suggested in http://stackoverflow.com/a/9489691/95696 ?