add gallery grid classes