gallery plugin option update