Pagination within resource template