        \begin{tikzpicture}[scale=0.85,transform shape]
                      \onslide<1->{
                        \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (0,1){\tiny{$s_1$}};
                        \node at (0.5,1.2) {\footnotesize $W$};
                        \node at (0.2,1.8) {\footnotesize $V$};
                        \node at (0.2,0.2) {\footnotesize $U$};
                        \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (0,-0.5){};
                        \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,-1){\tiny $x_1$};
                        \draw[->](Aemb)--(A);
                      }
                      \onslide<1->{
                        \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (0,2.8){};
                        \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,3.3){\tiny $\mathscr{L}_1(\theta)$};
                        
                        \draw[->](A)--(C);
                      }
                      
                      
                      \onslide<1->{
                        \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (1,1){\tiny{$s_2$}};
                        \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (1,-0.5){};
                        \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,-1){\tiny $x_2$};
                        \draw[->](Aemb)--(A);
                        \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (1,2.8){};
                        \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,3.3){\tiny $\mathscr{L}_2(\theta)$};
                        \node at (1.5,1.2) {\footnotesize $W$};
                        \node at (1.2,1.8) {\footnotesize $V$};
                        \node at (1.2,0.2) {\footnotesize $U$};
                        \draw[->](A)--(C);
                      }
                                \onslide<1->{
                                \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (2,1){\tiny{$s_3$}};
                                \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (2,-0.5){};
                                \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,-1){\tiny $x_3$};
                                \draw[->](Aemb)--(A);
                                \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (2,2.8){};
                                \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,3.3){\tiny $\mathscr{L}_3(\theta)$};
                                \node at (2.5,1.2) {\footnotesize $W$};
                                \node at (2.2,1.8) {\footnotesize $V$};
                                \node at (2.2,0.2) {\footnotesize $U$};
                                \draw[->](A)--(C);
                            }
                                \onslide<1->{
                                \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (3,1){\tiny{$s_4$}};
                                \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (3,-0.5){};
                                \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3,-1){\tiny $x_4$};
                                \draw[->](Aemb)--(A);
                                \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (3,2.8){};
                                \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3,3.3){\tiny $\mathscr{L}_4(\theta)$};
                                \node at (3.5,1.2) {\footnotesize $W$};
                                \node at (3.2,1.8) {\footnotesize $V$};
                                \node at (3.2,0.2) {\footnotesize $U$};
                                \draw[->](A)--(C);
                            }         
                                                  

                                \draw[->](0.2,1)--(0.8,1);
                                \draw[->](1.2,1)--(1.8,1);
                                            
                                \draw[->](2.2,1)--(2.8,1);
                                \draw[->](3.2,1)--(3.8,1);
                                \node (A) at (4,1){\dots};
                                            
                                           
        \end{tikzpicture}
        \begin{tikzpicture}[scale=0.85, transform shape]
        
        \onslide<1->{ 
          \draw[draw = blue, fill = blue!20] (2.5,-2) circle (0.3);
          \node (s4) at (2.5,-2) {$s_4$};
          
          \draw[draw = blue, fill = blue!20] (4,-2) circle (0.5);
          \node (l4) at (4,-2) {$\mathscr{L}_4(\theta)$};
          \draw[->] ($(s4) + (0.3,0)$) -- ($(l4) + (-0.5,0)$);
        }
        
        \onslide<2->{
          \draw[draw = blue, fill = blue!20] (1.5,-3.7) circle (0.3);
          \node (W) at (1.5,-3.7) {$W$};
          
          \draw[draw = blue, fill = blue!20] (1.5,-2) circle (0.3);
          \node (s3) at (1.5,-2) {$s_3$};
          \draw[->] (s3) -- (s4);
          \draw[->] (W) -- (s4);
          \draw[->] (W) -- (s3);
        }
        \onslide<3->{
          \draw[draw = blue, fill = blue!20] (0.5,-2) circle (0.3);
          \node (s2) at (0.5,-2) {$s_2$};
          \draw[->] (s2) -- (s3);
          \draw[->] (W) -- (s2);
        }
        \onslide<4->{
          \draw[draw = blue, fill = blue!20] (-0.5,-2) circle (0.3);
          \node (s1) at (-0.5,-2) {$s_1$};
          \draw[->] (s1) -- (s2);   
          \draw[->] ($(W) + (-0.189,0.189)$) -- ($(s1) + (0,-0.3)$);
        }
        \onslide<5->{
          \draw[draw = blue, fill = blue!20] (-1.5,-2) circle (0.3);
          \node (s0) at (-1.5,-2) {$s_0$};
          \draw[->] (s0) -- (s1);   
          % \draw[->] ($(W) + (-0.3,0)$) -- ($(s0) + (-0.0,-0.3)$);
        }                                                   
        \end{tikzpicture}
        
