Transverse vibration of flexible hoisting rope with time-varying length