move the margin into the next layer