Adjusted pagination to fit on smaller screens and take up less space