automatically open and close right sidebar (again)