Initial JS is working for the slider navigation