A device for controlling a swinging of a load suspended from a motorized slidable element which can move along a substantially horizontal axis, the controlling device comprising a control unit and an inertial platform, the inertial platform being able to detect representative values of an inclination angle of a cable that supports the load with respect to the vertical and being provided with means for communicating the values to the control unit, wherein the control unit is provided with means to measure and control the speed of the motorized slidable element and is able to process the values representative of the inclination angle of the cable with respect to the vertical so as to calculate and to impart control actions in order to dynamically control the speed of the motorized slidable element as a function of a desired inclination angle of the cable with respect to the vertical and wherein the control unit comprises a gain scheduled proportional controller provided with means to calculate a variable gain to be applied to the control of the speed of the motorized slidable element as a function of a distance of the load from the motorized slidable element, the distance being comprised between a maximum and a minimum value, the variable gain being calculated as a function of the distance of the load from the motorized slidable element.