Fix gallery slide counting
Fix gallery slide counting

Mistakes were partially a result of a poor merge in 925a1e5, but also
had to be corrected to using a collection count instead of an array length.

GeoMakers/geomakers.org,GeoMakers/geomakers.org