fixes pagination bug - doesn't show previous page or next page buttons if showing first or last page
further expands elements on the smallest screen devices