simplify paging calculations for ap items