hide and show side bars upon swipes