Adding pagination for books in library