\mode
<handout>
\usepackage{pgfpages}
\pgfpagesuselayout{8 on 1}[a4paper,border shrink=4mm]
\setbeamertemplate{footline}[page number]

\mode
<all>