Add delay slider.
Adapted from this stack overflow answer: http://stackoverflow.com/a/3694388