update the gallery plugin