Reset left-right margin mode when screen is resized