The slime is made of about 700 tiny particles .
Cohesion: each particle pulls on its neighbours, so they clump into a blob (like surface tension holding a raindrop together). Squash them too close and they push back.
Bonds join neighbours. They stretch slowly, but pull too fast and they snap, so the slime tears in two.
Push two blobs together and cohesion pulls them back into one.