add verification of visibility of side view before hiding