changes done for not allowing click when slider is open