[Tex/LaTex] Adjust space between two columns

beamercolumnsspacing

I am trying to create columns in beamer presentation. I am using the following code:

\begin{frame}
\frametitle{Deep Learning  and Autoencoders}
The visualization derives from the weight normalization using the following formula for the case of $10 \times 10$ (for all 100 pixels  $ j = 1, ..., 100$):

\medskip
\begin{columns}[t,onlytextwidth]
\column{.2\textwidth}
\begin{equation}
    x = \frac{W_{ij}^{(1)}}{\sqrt{\sum_{j=1}^{100} (W_{ij}^{(1)})^{2}}} 
\end{equation}  
\column{.2\textwidth}
\begin{figure}[ht!]
\centering
\includegraphics[width=25mm]{images/2.jpg}
\caption{A simple caption \label{overflow}}
\end{figure}
\end{columns}

\end{frame}

THat code is working however, two columns are having a great space between them. how can I adjust that space. My slide looks like:

enter image description here

Best Answer

Try increasing the column width equally (or \column{.2\textwidth} for the first one and \column{.8\textwidth} for the second one):

\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Deep Learning  and Autoencoders}
The visualization derives from the weight normalization using the following formula for the case of $10 \times 10$ (for all 100 pixels  $ j = 1, ..., 100$):

\medskip
\begin{columns}[t,onlytextwidth]
\column{.5\textwidth} %%width increased
\begin{equation}
    x = \frac{W_{ij}^{(1)}}{\sqrt{\sum_{j=1}^{100} (W_{ij}^{(1)})^{2}}} 
\end{equation}  
\column{.5\textwidth} %%width increased

\begin{figure}
\centering
\vrule height 3cm width 3cm
\caption{A simple caption \label{overflow}}
\end{figure}
\end{columns}

\end{frame}
\end{document}

enter image description here