Use a little nod of your volume hand when the melody goes up, to avoid glissando. When the melody goes down, glissando doesn’t sound that annoying and you may just play legato.