implements next and previous page for search results
More info