added rotation functionality to rotating slider