@manooooh If I replace the lower part of the document of your latest question by
\flushleft
\qquad\parbox{0.4\linewidth}{\hypersetup{pdfborder={0 0 0}}%
% list of OCGs, space separated
\def\ocglist{}%
\foreach \X in {0,...,\totalnodes} {\xdef\ocglist{\ocglist\space myArrow\X}}
\fbox{%
\parbox{12cm}{%
% on/off All
\showocg{\ocglist}{\fboxsep=1pt\fbox{\rule{0pt}{1.7ex}on}}/%
\hideocg{\ocglist}{\fboxsep=1pt\fbox{\rule{0pt}{1.7ex}off}} All\\%
% checkboxes
% \begin{multicols}{4}
\foreach \X in {0,...,\totalnodes} {%