Stretching while running

Hi!

Lately I’ve been feeling like I need a break to stretch out/bend legs while doing my long runs and I’ve been feeling good after doing so. I was wondering if this is recommended and if so how should I do it?