Added swipe functionality for the panel.