Add step to dismiss the gallery modal.