make the sidebar do the right thing on mobile