adds pagination to the feed