Dryer vents are usually placed toward the bottom of a dryer, and the vent in the wall is usually placed with a mind for convenience, rather than suitable proximity to the vent outlet. A dryer vent periscope can come in handy for connecting the two. They're solid metal as well, so you won't have to worry about poking holes in them or bending them like you would with a hose.
Most vent periscopes only require a couple of inches of space between the dryer and the wall. You'll want to measure to make sure exactly. The periscope you buy should have the specs on it, as well. Many periscopes have telescoping ability; they stretch however long you need them to. Once your dryer is where you want it, simply stretch the periscope out long enough to fit in the wall inlet.
Most vent periscope kits will come with a fitted steel clamp ring to attach the top of the periscope to the wall. If not, determine the circumference and use a clamp ring a little bit bigger. You want it tight enough to secure the periscope to the wall, but not tight enough to bend it.