[Tex/LaTex] How to alternate graphics in LaTeX beamer


I'm trying to alternate graphics on a slide:

\frametitle{Verkette Liste Beispiel} 

My problem is I don't get alternating captions. I get something like this: http://public.kungi.org/main-faulty.pdf

I tried the solution from this question: https://stackoverflow.com/questions/1088761/how-to-change-an-image-on-a-slide-in-latex but it did not work for me.

What am I doing wrong?

Best Answer

The \caption command is not "overlay specification aware". Instead of