Definitions slider change in shapes.js