A simple filter to paginate items in a list, based on page size and the current page