Implement custom pagination for comments