# ToC at the beginning of each section do now show all sections

In beamer,I used the following code to show the ToC at two pages. One page was not enough because it shows all its subsections. I didn't use 'allowframebreaks' because it breaks at 'random' location rather than appropriately divide sections.

\begin{frame}{Outline}
\tableofcontents[part=1]
\end{frame}
\begin{frame}{Outline}
\tableofcontents[part=2]
\end{frame}


I also show ToC at the beginning of each section with other sections shaded.

\AtBeginSection[]
{
\begin{frame}<beamer>{Outline}
\tableofcontents[currentsection,subsectionstyle=hide]
\end{frame}
}


Here, I want to show 'all' sections because I hided all subsections so there's enough space.

The problem is that the ToC at the beginning of each section only shows part 1 or part 2. How can I display all sections at each section with the initial ToC divided into two slides?