added pagination styling for mobile devices