\tikzstyle{neuronv}=[circle,minimum size=20pt,inner sep=0pt, thick, fill=orange!30, draw=red!50]
\begin{tikzpicture}[scale=0.9]
	\onslide<4->{\draw[rounded corners]  (-0.5, -0.5) rectangle (4, 0.5) {};
        \node (v1)[neuronv] at (0,0) {};
        \node (v1)[neuronv] at (0.8,0) {};
        \node (v1)[neuronv] at (1.6,0) {};
        \node (v1)[neuronv] at (2.4,0) {};
        \node (v1)[neuronv] at (3.2,0) {};}
    \onslide<5->{\draw[rounded corners]  (2.5, 3.5) rectangle (7, 4.5) {};
        \node (v1)[neuronv] at (3,4) {};
        \node (v1)[neuronv] at (3.8,4) {};
        \node (v1)[neuronv] at (4.6,4) {};
        \node (v1)[neuronv] at (5.4,4) {};
        \node (v1)[neuronv] at (6.2,4) {};}
    \onslide<6->{\draw[rounded corners]  (5, -0.5) rectangle (9.5, 0.5) {};
        \node (v1)[neuronv] at (5.5,0) {};
        \node (v1)[neuronv] at (6.3,0) {};
        \node (v1)[neuronv] at (7.1,0) {};
        \node (v1)[neuronv] at (7.9,0) {};
        \node (v1)[neuronv] at (8.7,0) {};}
    \onslide<7->{\node[text width=3cm] at (12,4) {$\dots$};}
    \onslide<8->{\draw[rounded corners]  (11, -0.5) rectangle (15.5, 0.5) {};
        \node (v1)[neuronv] at (11.5,0) {};
        \node (v1)[neuronv] at (12.3,0) {};
        \node (v1)[neuronv] at (13.1,0) {};
        \node (v1)[neuronv] at (13.9,0) {};
        \node (v1)[neuronv] at (14.7,0) {};}
    \onslide<5->{\draw[thick,black,->] (1.75,0.5) -- (4.65,3.5);}
    \onslide<6->{\draw[thick,black,->] (4.75,3.5) -- (7.15,0.5);}
    \onslide<7->{\draw[thick,black,->] (7.35,0.5) -- (10.5,3.5);}
    \onslide<8->{\draw[thick,black,->] (10.7,3.5) -- (14.25,0.5);}
    \onslide<5->{\node[text width=3cm] at (3,2) {$\sim p(\bm{h}|\bm{v})$};}
    \onslide<6->{\node[text width=3cm] at (5.7,2) {$\sim p(\bm{v}|\bm{h})$};}
    \onslide<7->{\node[text width=3cm] at (10.6,2) {$\sim p(\bm{h}|\bm{v})$};}
    \onslide<8->{\node[text width=3cm] at (14.3,2) {$\sim p(\bm{v}|\bm{h})$};}
    \onslide<4->{\draw[thick,black,->] (1.75,-1.0) -- (1.75, -0.5);}
    \onslide<6->{\draw[thick,black,->] (7.25,-0.5) -- (7.25, -1.0) ;}
    \onslide<8->{\draw[thick,black,->] (14.25,-0.5) -- (14.25, -1.0) ;}
    \onslide<4->{\node[text width=8] at (1.75,-1.3) {$\mathbf{V}_{s}$};}
    \onslide<6->{\node[text width=8] at (7.25, -1.3) {$\mathbf{V}^{(1)}$};}
    \onslide<8->{\node[text width=2cm] at (14.25, -1.3) {$\mathbf{V}^{(k)} = \tilde{\mathbf{V}}$};}
    
\end{tikzpicture}