[Tex/LaTex] Section title doesn’t fit in TOC in beamer

beamertable of contents

So I have a section in my presentation with a longer name. And on the slides I just used \small, and it fit onto the slide, but on the toc it doesn't 'break', it just continues on cutting off the title of the section :
Is there a way to make it fit, or to continue underneath the section?

MWE:

\documentclass[xcolor=dvipsnames,mathserif,professionalfont,12pt]{beamer} 
\usecolortheme[named=RoyalBlue]{structure} 
\useoutertheme{infolines} 
\usetheme[height=7mm]{Rochester} 
\setbeamertemplate{items}[ball] 
\setbeamertemplate{blocks}[rounded][shadow=true] 
\setbeamertemplate{navigation symbols}{}
%\usefonttheme{serif}
\usefonttheme{professionalfonts}



\usepackage{amsmath,amssymb,amsthm,amssymb}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{graphicx}
\usepackage{float}
\usepackage[croatian]{babel}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{txfonts}
\usepackage{subfigure}
\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{time}
\usepackage{extarrows}

\title{Title}
\subtitle{Subtitle}
\author{Me}
\institute[Random institute]{Random institue}
\date{\today}

\begin{document}
\maketitle

\begin{frame}
\frametitle{ToC}
\tableofcontents
\end{frame}

\section{Section 1}
\begin{frame}
\frametitle{Section 1}
bla
\end{frame}

\section{Section 2}

\begin{frame}
\frametitle{Section 2}
bla
\end{frame}

\subsection{A very long subsection that doesn't want to collapse into two row, but rather goes on and on and on}

\begin{frame}
\frametitle{\small{A very long subsection that doesn't want to collapse into two row, but rather goes on and on and on}}
bla
\end{frame}

\end{document}

EDIT: This is the output:

enter image description here

Best Answer

Compiling with latex-ps-pdf hyperref isn't able to break links directly. You can use the following snippet:

\makeatletter
\providecommand{\H@@footnotetext}{}
\makeatother
\usepackage{hypdvips}

Or you can load the package hyperref with the option breaklinks=true

\documentclass[hyperref={breaklinks=true}]{beamer}