fix pagination layout