Gracefully transition between the margin sizes