update padding and margins