Adding pagination to Library section