update demo to respond to slider better