added touch operation to the slider