I am working on a beamer presentation with a quite large table of contents. Therefore I split the table into two columns with the following code:

\begin{frame}{Overview}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}


However this table is bad formatted. A section that starts on the left column continues on the right column. Are there any ways to avoid this.

Secondly the theme (Berkeley) prints a table of contents on the left, is there a way to make such a table that collapses (when no longer in that section, only show the section and not its subsection)?

-

my table of contents was also really long, and i considered columns or splitting slides but went with this instead

\begin{frame}{Outline}
\tableofcontents[hideallsubsections]
\end{frame}


for my outline at the beginning, and

\AtBeginSubsection[]{
\begin{frame}{Outline}