Another option is to buy a separate fitting which goes between the shower fitting and the wall, usually called a shower plate / cover plate / back plate. This will fill the gap and stops you from needing to cut the pipe, which once done limits your future options.