Weight loss before surgery

Hi! I (27F) am considered obese (bmi 33) and am trying to lose weight. However, I also have gall stones. The surgeon said that gall stones may get worse with weight loss (right now they are most asymptomatic).

Is there anyway to go about weight loss that would reduce my risk of worsening the stones/having a major attack?

He gave me these pills to maybe dissolve the stones, but I have heard they are not effective. I haven’t started taking them.

Thanks!