Updated slider script.