divide up table into pages