Add pagination to the bottom of media