improving pagination layout