Adds pagination to library results