simple slider written in Dart