a scaffold infinite image gallery with custom controller for adding more events