auto collapse sidebar in mobile view