Usually to paginate results from a query, I used SQL start/limit. Code reads the page where the user is and, basing on how many elements per page we want to be shown, start