format and align pagination elements