fixed issue with js modal

was affect the slider