title: How to change an image on a slide in Latex?
body: <p>In a frame I have two columns. In the first column I display some information using an itemize. When I display a new item I want to change in the second column the image which is displayed. I tried with onslide but it doesn't help me. Here is the code:</p>
  
  <pre><code>\begin{columns}
      \begin{column}[l]{10cm}
          \begin{itemize}[&lt;+-&gt;]
              \item
                  first item
              \item
                  second item
          \end{itemize}
      \end{column}
      \begin{column}[r]{2cm}
          \onslide&lt;1&gt; 
          {
              \begin{figure}
                  \includegraphics[width=2cm,height=3.5cm]{First.eps}
                  \caption[1]{First Image}
              \end{figure}                
          }
          \onslide&lt;2&gt; 
          {
              \begin{figure}
                  \includegraphics[width=2cm, height=3.5cm]{Second.eps}                   
                  \caption[2]{Second Image}
              \end{figure}                
          }
      \end{column}
  \end{columns}
  </code></pre>
  
  <p>Could you help me with this problem?</p>