adjust page padding. add gradient dynamically