Fencing a slope: posts, panels and the steps nobody plans
A fence on a slope has two possible looks: deliberately stepped, or accidentally sloping. The difference is a decision made before the posts go in.

Three ways to follow a slope
Stepped: each panel is level, and the step is taken at a post. Raked: the top and bottom rails follow the gradient, and the panel is a parallelogram. Stepped with a chamfer: panels are level but the bottom is cut to follow the ground. Each looks deliberate if it is consistent, and wrong if it changes method halfway.
Stepped is usually the better choice
A stepped fence reads as a series of level panels, which suits aluminium panels with a frame and looks tidy on a visible boundary. The step is taken at a post, and the post is longer on the downhill side. Keep the step consistent — the same height at every post — or the fence looks like a mistake.
Raked needs a different panel
A raked panel has to be made as a parallelogram, which means cutting the sheet on a diagonal and a frame that follows the slope. On a perforated or louver panel, that means custom fabrication. It looks elegant on a long steady gradient and is expensive.
Post depth on a slope
The post on the downhill side has more of its length exposed, so it needs a deeper foundation and often a larger section. As a rule, embed at least 600 mm plus the amount the post is exposed above the lower ground level. A post that is 600 mm deep on the uphill side and 900 mm exposed on the downhill side will lean.
The gap at the bottom
On a step, the bottom of a level panel is above the ground on the downhill side, leaving a gap that a dog can get under and that looks unfinished. Either set the panel lower with a gravel board, or add a mesh skirt, or accept the gap as part of the step. Decide which before the posts are set.
Retaining
A fence is not a retaining wall. If the ground steps more than 300–400 mm across the line, the fence needs a retaining edge or a stepped foundation, and the loads on the posts change. On a steep garden, a low retaining kerb under the fence line solves most of the problem.
Setting out
Run a string line at the top of the fence and mark each post position on it. Then check the bottom line against the ground. The two lines, not the individual posts, decide whether the fence looks level.