Use slider to rotate the cube