like this?

apparently your image is to high that in frame would have space image and equation. since your image is relatively simple i redraw it by use of the packagetikz:
\documentclass{beamer}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{chains,
positioning,}
\begin{document}
\begin{frame}[fragile]{ Recurrent Neural Networks (RNNs)}
\begin{figure}
\centering
\begin{tikzpicture}[
node distance = 6mm and 8mm,
start chain = A going right,
box/.style = {draw, rounded corners,
minimum size=8mm, outer sep=0pt},
circ/.style = {circle, draw, dashed,
minimum size=10mm, inner sep=1pt, outer sep=0pt},
]
\foreach \i/\j/\k [count=\n] in {h_{t-1}/y_{t-1}/x_{t-1}, h_{t}/y_{t}/x_{t}, h_{t+1}/y_{t+1}/x_{t+1}}
{
\node[circ,on chain=A,join=by -stealth] {$\i$};
\node[box, above=of A-\n] (y\n) {$\j$};
\node[box, below=of A-\n] (x\n) {$\k$};
\draw[-stealth] (A-\n) -- (y\n);
\draw[-stealth] (A-\n) -- (x\n);
}
\node[circ, left =of A-1] (A-0) {$h_{({\dots})}$};
\node[circ, right=of A-3] (A-4) {$h_{({\dots})}$};
%
\draw[-stealth,dashed] (A-0) -- (A-1);
\draw[-stealth,dashed] (A-3) -- (A-4);
\end{tikzpicture}
\caption{Recurrent Neural Network unfolded in time}
\end{figure}
\begin{align}\label{rnn-eq}
h_{t} & = f(W_{hx}x_{t} + W_{hh}h_{t-1} + b) \\
y_{t} & = g(W_{yh}h_{t} + c)
\end{align}
\end{frame}
\end{document}
in case, that you have image as pdf files, than the simplest way to include them as follows:
\begin{figure}
\centering
\include graphics[height=4cm]{rnn} % adjust height so, that image and equation will fit in one frame
\caption{Recurrent Neural Network unfolded in time}
\end{figure}
eqnarrayrather usealignfrom the packageamsmath. – Zarko May 27 '18 at 09:02\includegraphics. – leandriis May 27 '18 at 10:24