new js changes for slider