animateCollapsePanels method to hide bars when tapping on notification