separating groups
new page if counter != group_length
update formatting for part