add script to group pdfs per page rather than per side