Adjust display of the gallery view.