Improve pagination for home page.