multi-select resize function