Max  & min to slider