update gallery height