Adding a simple pagination system for collection