Complex sentence: The film ends with Melvin and Carol walking together and as he opens a door for Carol he steps on a crack in the pavement.
Split into simpler sentences: The film ends with Melvin and Carol walking together. As he opens a door for Carol, he steps on a crack in the pavement.