Question about Menu with Slider tutorial

i’m working with the MENU with SLIDER tutorial located at:

Basically, I’m designing something where I want the slider to move vertically instead of horizontally. Would I simply change all the "x"s in the code to "y"s?

I tried this but the slider doesn’t move at all. Is there more to it?

thanks for reading,