Implement pagination on homepage