Like this....
Shoot on a tripod, take multiple exposures and then "piece" them together. Think of it like putting a puzzle together.
To learn the process of stitching look up videos on youtube or google it, there are a few different ways and everybody prefers something different.