Adding padding to pagemax