add the gallery view.