Fixing pagination layout

Fixing the pagination layout, as shown in the picture below:

![pagination_layout](https://f.cloud.github.com/assets/2597271/568531/a1d90dc2-c6dc-11e2-85dd-fbbb1e3c6b2d.png)