added media queries to pagnation buttons