It would be the same process of adding Header, Footer and Item transformation for level 3 and 4.
Also, do you plan to display all 5 levels at the same time? or you display some kind if side level with would only display pages which is 4 or 5 levels down from root? It those cases, you just need to dynamically set the starting path from level 3 Path: /{0}/{1}/{2}/% then in the transformation, you only need to define level 0 and 1 which would be {3} & {4} relative to the starting path.