swapping paddings and margins