added dragging via slider bar