Added interactive slider labels.

Moved utility functions to separate file.