Managing hysteresis of Gd5Si2Ge2 by magnetic field cycling