The invention relates to a nozzle and nozzle head arranged to supply gas towards a surface of a substrate The nozzle comprises a nozzle output surface via which the gas is supplied towards the surface of the substrate, a nozzle top surface opposite the nozzle output surface, and a nozzle side wall extending between the nozzle output surface and the nozzle top surface. The nozzle further comprises at least one recess provided to the nozzle side wall, the at least one recess extending between the nozzle top surface and the nozzle output surface for providing a gas passage from the nozzle top surface to the nozzle output surface when the nozzle side wall is against a counter surface.