update slider, add nan check
Merge pull request #2 from PushLab/master

update slider, add nan check