Add pagination classes