I'm trying to put \only<1>{...} images in the background slide of beamer. However, I need to add +1 to all values in \only, i.e. I need to write \only<2>{...} to display the image on the first frame. Despite being not practical, the problem is that it also duplicate the last slide 2 times, which creates without any reason an additional, unwanted slide...
Any reason for that? How can I come back to normal numbering, and remove this last unwanted frame?
Thanks!
MWE:
\documentclass[table,aspectratio=169]{beamer}
\useoutertheme[footline=institutetitle,subsection=false]{miniframes}
\usecolortheme{beaver}
\begin{document}
{\usebackgroundtemplate{%
% Why do I need to add 1 to get the correct value for only, and how can I remove the last, doubled, slide?
\only<2>{\includegraphics[width=\paperwidth,height=\paperheight]{example-image-a}}%
\only<3>{\includegraphics[width=\paperwidth,height=\paperheight]{example-image-b}}%
\only<4>{\includegraphics[width=\paperwidth,height=\paperheight]{example-image-c}}%
}
\begin{frame}[t]
\begin{itemize}
\item \onslide<1>{A}
\item \onslide<2>{B}
\item \onslide<3>{C (see that on the next slide there is an empty slide...)}
\end{itemize}
\end{frame}
}
\end{document}
-- EDIT -- The problem of the solution given in this thread is that it create additional pages instead of putting all slides in a single page...
\documentclass{beamer}
\useoutertheme[footline=institutetitle,subsection=false]{miniframes}
\usecolortheme{beaver}
\setbeamercolor{separation line}{use=structure,bg=darkred!80!black}
\begin{document}
\section{test}
{
\setbeamertemplate{background}{\includegraphics[height=\paperheight,width=\paperwidth]{example-image-a}}
\begin{frame}<1>[label=myframelabel]
\begin{itemize}
\item<+-> a
\item<+-> b
\item<+-> c
\item<+-> d
\item<+-> e
\end{itemize}
\end{frame}
\setbeamertemplate{background}{\includegraphics[height=\paperheight,width=\paperwidth]{example-image-b}}
\againframe<2>{myframelabel}
\setbeamertemplate{background}{\includegraphics[height=\paperheight,width=\paperwidth]{example-image-c}}
\againframe<3>{myframelabel}
\setbeamertemplate{background}{\includegraphics[height=\paperheight,width=\paperwidth]{example-image-a}}
\againframe<4->{myframelabel}
}
\begin{frame}
Hello, I'm a new empty frame
\end{frame}
\end{document}

