fixed galleries loop, left note for scott