Split list into groups

Split the list into blocks of the specified size.