automatically close (and reopen) the sidebar

...when large display elements take over the screen.
Merge pull request #100 from benji-york/open-close-sidebar-2

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