How to not get panty lines on my skin?

Whenever i take my underwear off, i always notice a red ring around my waist. Its probably because of a too tight waistband but when I size up, its too loose. Any tips?