Support editing of galleries