Spiders legs extend using hydraulic pressure from their circulatory system, and when they are crushed the legs curl in due to the loss in pressure.