Evolution of solitons in magnetic thin films