fix #21

Makes sure slider widgets are initialized to an element of the corresponding range.