fixing inconsistent pagination layout