An agricultural machine including a chassis carrying an arm including first and second ends, a first unit connected to the arm and extending laterally between the first and second ends, a second unit connected to the arm and extending laterally beyond the second end, a device connecting the second unit to the arm in vicinity of its second end and allowing it to swivel relative to the arm around a second longitudinal axis close to the second end, a mechanism driving elements of the first and second units and carried by the arm in vicinity of the second end. The device includes an axis oriented upwards during work around which the mechanism is mounted with swiveling action on the arm, and the mechanism and at least one of the first and second units can, in a lateral position of the arm relative to the chassis, jointly swivel around the axis.