Adds support for sliding a slider to minimum or maximum values

This fixes the failing test case proposed by PR #462 and adds support for setting the maximum value.