Dimensional reduction for supremal functionals