Cleanup carousel example.

I've removed unused code to make it clearer and easier to understand.