add int validator to Slider