The question inquires about what limits their size, but the truth is that we don't even know how big they can be.
IC 1101 is the largest galaxy we know of, roughly 60 times larger than the Milky Way.
It is known, for example, how thermonuclear reactions cause stellar eruptions that make stars of considerable size lose mass.
On the other hand, it is unknown whether very, very large galaxies (hypothetically larger than IC 1101) would experience something similar (losing mass through some unknown mechanism), preventing them from arbitrarily increasing their dimensions in that sense.
The thing is, we have dark matter as a relevant actor in this little matter, and we're not even sure it exists.
Here we have a "collision" of galaxies.
Where the resulting structure increases in size.
This is how IC 1101 grew so large, by consuming other galaxies in its cluster; it's a common occurrence.
The Milky Way will do the same to the Magellanic Clouds, and then it will in turn be swallowed by Andromeda, giving it what it deserves. Karma XD
So it seems there would be no limit to attracting galaxies from the cluster itself and thus incorporating them into its ever-growing mass. But it won't be able to do more than that.
The pressure caused by dark energy will put other structures too far away to be absorbed.