improve slider's event