Limited index loop array length, fixed gallery index output