added slider click functionality