Setting a different number of values in slider does not create new handles

Setting a different number of values in slider does not create new handles

I had initialized my slider with 3 values [10, 30, 50]. Can I dynamically change it later with a different number of values?

$('#slider').slider("values", [20, 40, 60, 80, 100])

I tried this and it didn't seem to create the additional 2 handles. It moved my initial 3 handles to 20, 40, 60, but did not create the other 2 handles. Any suggestions?