Styling changes with pagination