Move </div#flex> from _footer to _end

It is open in _begin, so it has to be closed in _end.
Thus we can remove the inclusion of _footer without breaking anything in the layout.