automatically close (and reopen) the sidebar

...when large display elements take over the screen.