update logic galleries