Collapsing pagination on narrow screen devices

I think this is the best way to display pagination on mobile devices. :)