Implement pagination for tiles