The trick is to hold a carrot so the horse bends his neck to reach it.
Then you gently stretch each back leg both forwards and backwards.