Trying to make gallery grid work for every tab