now manages the end of the pagination by not showing the more button