slider with dragdealer, resize function