how can I animate an assembly mechanism?

Hello,

I'm working on my BSE in Mechanical engineering, and as a part of my project I designed a mechanism that moves like a worm.

I've had several issues with the assembly:

1. Defining constraints - I wish to define a constaint that it's goal is "Parts can't collide" but I found no such option.

2. I want to animate the mechanism for my presentation. How can I do that Via SolidWorks?

thank you very much.

SolidworksSimulation