I have two tikz pictures wrapped in two rectangular boxes and connected with tikz arrow for illustration on beamer as demonstrated below:
\documentclass[xcolor=dvipsnames,svgnames]{beamer}
%\usepackage{pgfpages}
%\pgfpagesuselayout{2 on 1}[a4paper]
\usetheme{Madrid}
\useoutertheme[subsection=false]{miniframes} % Alternatively: miniframes, infolines, split
\useinnertheme{circles}
\makeatletter
\def\beamer@writeslidentry{\clearpage\beamer@notesactions}
\makeatother
%https://tex.stackexchange.com/questions/699171/put-two-tikz-pictures-in-adjacently-opposite-boxes-a-beamer
\usepackage{tikz}
\usetikzlibrary{shapes.arrows,shadows.blur,positioning,arrows.meta,
bending,decorations.text,decorations.pathreplacing}
\usepackage{eqparbox}
\newbox\eqnodebox
\tikzset{equal size/.style={execute at begin
node={\setbox\eqnodebox=\hbox\bgroup},
execute at end node={\egroup\eqmakebox[#1][c]{\copy\eqnodebox}}},
equal size/.default=A,}
% Preamble for textbox connected wit arrow
\usetikzlibrary{positioning, shapes.arrows,shadows.blur}
%\usepackage{better-beamer}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,arrows}
\begin{document}
\begin{frame}[label = {frm15}, fragile, shrink=20]
\frametitle{\textbf{Moving Block Bootstrap}}
\begin{tikzpicture}[
node distance = 200mm and 40mm, % boxes distance
box/.style = {draw=#1, rounded corners, thick, fill=#1!15}, % <---
arr/.style = {draw=red!80!black,line width=5mm, shorten >=-3.5ex, % <--- arrow tickness
-{Stealth[width=0pt 3,inset=0pt 1, flex]} } % <--- arrow head
]
\newcommand\B{\mathbf{B}}
\node[box=cyan] (n1)
{\begin{tikzpicture}
% draw horizontal line
\draw (0,0) -- (17,0);
% draw vertical lines
\foreach \x in {0.5,1.5,2.5,7.5,8.5,9.5,14.5,16.5}
\draw (\x cm,5pt) -- (\x cm,-0pt);
% draw nodes
\draw (0.5,0) node[above=5pt] {$ x_{1} $} node[above=5pt] {$\rm $};
\draw (1.6,0) node[above=5pt] {$ x_{2} $} node[above=5pt] {$\rm $};
\draw (2.5,0) node[above=3pt] {$ x_{3} $} node[above=5pt] {$\rm $};
\draw (5,0) node[above=3pt] {$ \ldots $};
\draw (7.5,0) node[above=3pt] {$ x_{l} $} node[above=5pt] {$\rm $};
\draw (8.5,0) node[above=3pt] {$ x_{l+1} $} node[above=5pt] {$\rm $};
\draw (9.5,0) node[above=3pt] {$ x_{l+2} $} node[above=5pt] {$\rm $};
\draw (12,0) node[above=3pt] {$ \ldots $};
\draw (14.5,0) node[above=3pt] {$ x_{l*b} $} node[above=5pt] {$\rm $};
\draw (15.75,0) node[above=3pt] {$ \ldots $};
\draw (16.5,0) node[above=5pt] {$ x_{n} $} node[above=5pt] {$\rm $};
\draw [-] (0.5,-0.1) -- (0.5,-0.5);
\draw [-] (7.5,-0.1) -- (7.5,-0.5);
\draw [-] (0.5,-0.3) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{1} $} (7.5,-0.3);
\draw [-] (1.5,-0.8) -- (1.5,-1.2);
\draw [-] (8.5,-0.8) -- (8.5,-1.2);
\draw [-] (1.5,-1.0) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{2} $} (8.5,-1.0);
\draw [-] (2.5,-1.5) -- (2.5,-1.9);
\draw [-] (9.5,-1.5) -- (9.5,-1.9);
\draw [-] (2.5,-1.7) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{3} $} (9.5,-1.7);
%\draw [-] (1.5,-0.1) -- (1.5,-0.8);
\draw [-] (14.5,-0.1) -- (14.5,-0.5);
\draw [-] (11.0,-0.3) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{k} $} (14.5,-0.3);
\draw (10.75,-0.3) node {$ \ldots $};
\end{tikzpicture}};
\node[box=blue, below left=of n1] (n2)
{\begin{tikzpicture}
% draw horizontal line
\draw (0,0) -- (17,0);
% draw vertical lines
\foreach \x in {0.5,1.5,2.5,7.5,8.5,9.5,14.5,16.5}
\draw (\x cm,5pt) -- (\x cm,-0pt);
% draw nodes
\draw (0.5,0) node[above=5pt] {$ x_{1} $} node[above=5pt] {$\rm $};
\draw (1.6,0) node[above=5pt] {$ x_{2} $} node[above=5pt] {$\rm $};
\draw (2.5,0) node[above=3pt] {$ x_{3} $} node[above=5pt] {$\rm $};
\draw (5,0) node[above=3pt] {$ \ldots $};
\draw (7.5,0) node[above=3pt] {$ x_{l} $} node[above=5pt] {$\rm $};
\draw (8.5,0) node[above=3pt] {$ x_{l+1} $} node[above=5pt] {$\rm $};
\draw (9.5,0) node[above=3pt] {$ x_{l+2} $} node[above=5pt] {$\rm $};
\draw (12,0) node[above=3pt] {$ \ldots $};
\draw (14.5,0) node[above=3pt] {$ x_{l*b} $} node[above=5pt] {$\rm $};
\draw (15.75,0) node[above=3pt] {$ \ldots $};
\draw (16.5,0) node[above=5pt] {$ x_{n} $} node[above=5pt] {$\rm $};
\draw [-] (0.5,-0.1) -- (0.5,-0.5);
\draw [-] (7.5,-0.1) -- (7.5,-0.5);
\draw [-] (0.5,-0.3) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{1} $} (7.5,-0.3);
\draw [-] (1.5,-0.8) -- (1.5,-1.2);
\draw [-] (8.5,-0.8) -- (8.5,-1.2);
\draw [-] (1.5,-1.0) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{2} $} (8.5,-1.0);
\draw [-] (2.5,-1.5) -- (2.5,-1.9);
\draw [-] (9.5,-1.5) -- (9.5,-1.9);
\draw [-] (2.5,-1.7) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{3} $} (9.5,-1.7);
%\draw [-] (1.5,-0.1) -- (1.5,-0.8);
\draw [-] (14.5,-0.1) -- (14.5,-0.5);
\draw [-] (11.0,-0.3) --node [midway,anchor=center,fill=white,inner sep=0.5pt] {$ B_{k} $} (14.5,-0.3);
\draw (10.75,-0.3) node {$ \ldots $};
\end{tikzpicture}};
\scoped[opacity=0.3,transparency group] % <---
\path[arr] (n1.south) to[bend left=45] (n2.east); % <---
\end{tikzpicture}
\end{frame}
\end{document}
What I Want
I want the height of the first-rectangular tikz to increase vertically downward for visibility and the second-rectangular tikz to increase vertically upward for visibility. Invariably, the distance will reduce accordingly.
Note
Weights need not increase.



shrinkframe option – samcarter_is_at_topanswers.xyz Oct 30 '23 at 12:23