VID-1920 updating front end for expanded galleries

[trivial] call it `$visibleCount` for clarity.