galleries extended with itemsinarow attribute