Update margins for containers