You want timer1.period=slider1.value. There is a whole section in the online reference (press Command+1 to view and search for timer)
Remember, a value of 1000 for the timer=1 second, so make sure the slider walue is going to be big enough, or steps at certain intervals. You can do this by doing some rounding.
Also remember that 32767 will be a maximum possible value, because slider maximums cannot be any higher. So using a slider may not be the best approach anyhow. But then again, I don't know what you are trying to do.