slider script working