On-the-fly reconfigurable magnetic slime used as a robot