The generation and excitation of a magnetic soliton in a three-layer ferromagnet by constant magnetic fields and fields of variable frequency and small amplitude in the presence of dissipation in the system are considered. The analysis of the solutions of the equation of motion in an alternating field shows the possibility of increasing the amplitude of the magnetic soliton over time under certain conditions. The resonant effect is also affected by the geometric parameters of the thin layer: at a large layer width, the translational mode of the soliton oscillations is also excited.