added function to adjust paging on grid archives