Update box margins