Use separate state for each slider demo

Fixes #988