auto open and close sider