added support for a max slider value callback