adjust margin for narrow viewports