paging logic more similar to default plone templating