paginate data for heatmap