Stuck window

My front passenger window (automatic) sometimes goes back up, sometimes doesn’t. I can move it back up usually inch by inch. I was wondering if there’s anything to do to fix it without taking it to a dealer. Or, what would it cost to fix it? Thanks!