You can make a simple estimate to see that gravitational effects will be far (many orders of magnitude) too small to give a relevant effect.
How could you find out using gravitational interaction which slit the particle was passing through? Well, you could for example place another particle right between the slits, at rest. Then you could argue that if the first particle goes through the upper slit, then our "detector particle" gets a upward momentum kick. If the first particle goes through the lower slit then the detector particle gets a downward momentum kick. So you just look at your detector particle after the interaction and depending on whether it has upwards or downwards momentum you know which slit the other particle went through.
Simple, right?
Well, no. It's not that simple. The devil is in the detail. Especially in the two claims I made about the state of the detector particle before the interaction: "placed between the two slits" and "at rest". Both are important, because if your detector particle was for example placed above both slits, then it would always be pulled down, regardless of which slit the other one passes through. And if it already had upward or downward momentum before the interaction, this could cancel (or even turn around) the momentum kick you actually want to measure. In both cases, your detector would not work
"Placed between the two slits" implies that its position uncertainty ##\sigma_x## in that dimension should be smaller than the distance of the slits ##d##.
[tex]\sigma_x\lesssim d\;.[/tex]
"At rest" should be replaced with "small enough momentum uncertainty in that direction", where "small enough" means that the moment uncertainty ##\sigma_p## should be smaller than the expected momentum transfer ##\delta p## from the interaction of the two particles.
[tex]\sigma_p \lesssim \delta p\;.[/tex]
Of course the state of the detector particle has to obey the momentum-position uncertainty relation
[tex]\sigma_x\sigma_p\geq\frac{\hbar}{2}\,.[/tex].
Putting everything together you find
[tex]\delta p \gtrsim \frac{\hbar}{2d}\;.[/tex]
This is an estimate of the minimum strength of the interaction (given in terms of the typical momentum kick ##\delta p## that your detector particle gets) in order to get a meaningful which-way measurement.
Plug in some reasonable numbers for the distance of the slits and the strength of gravitational interaction, and you'll see: no chance!