Self-modulated soliton modes excited in a nanocontact spin-torque oscillator