fix pagination spacing on first & last page