I would like to achieve that a table and a figure are next to each other. I found this question and tried to use it for my purpose. However, I can't make it work. Here is an example slide. I would like to have first the three items (1, 2, 3) and then next to each other the table and the picture.
\documentclass{beamer}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\begin{itemize}
\item 1
\item 2
\item 3
\end{itemize}
\begin{block}{test}
\begin{minipage}{0.5\textwidth}
\centering
\begin{table}[]
\begin{tabularx}{ccc}{0.9\textwidth}
\textbf{API hits per month (in Mio.)} & \textbf{Price per month} & \textbf{Price per year} \\ \hline
\rowcolor[HTML]{DDDDDD}
0.1 & 2'500 & 30'000 \\
0.5 & 3'250 & 39'000 \\
\rowcolor[HTML]{DDDDDD}
1 & 4'000 & 48'000 \\
1.5 & 4'750 & 57'000 \\
\rowcolor[HTML]{DDDDDD}
2 & 5'500 & 66'000
\end{tabularx}
\end{table}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\centering
\includegraphics[width=\textwidth]{b.png}
\end{minipage}
\end{block}
\end{frame}
\end{document}
where the picture I for this purpose is