How to convert a String number Into a int value?
The easiest way is to use the parseInt method available to Serial like this

int val = Serial.parseInt()


But, you will have to be sure that the non-number part of the message ("Slider") has already been dealt with.

You could also put the data into an arduino String Object and use it's toInt method, or put it in a C style string and use the atoi method.