Paginator does not show all the pages at once