Last trans I had do that was cured by a fluid and filter change. The filter was getting plugged while it had fluid going through it and after stopping the drain back through it would clean enough gunk out of it to allow fluid flow again. It sounds like either you are plugged up or you are runing low on fluid somehow.