The space required between the wall and your trellis will depend on what you are using it for. If you are using your trellis for climbing plants, a distance of around 10cm is good, as this reduces the amount of maintenance needed for these plants. However, if you are adding backlights, it will vary based on the lighting installation you have.