Use as little of the flexible ribbed stuff as possible. It traps lint and water like no tomorrow and hurts the efficiency/lifespan of your dryer. Just build effectively the same thing as what you posted with two elbows and some straight hard duct, then you don't have all those weird pockets to trap stuff in (and it's cheaper).
Two of these:
https://www.homedepot.ca/en/home/p.4...000107349.html
And one of these:
https://www.homedepot.ca/en/home/p.4...000107373.html
You'll need tin snips and tin tape as well, cut the duct before snapping it together as it's a hell of a lot easier. And wear gloves because those edges will cut you up pretty easily.