Adds circular option. Stop sliding if its false.