In this work the mechanism which helps to reduce the dislocation density by deposition of a SiNx interlayer is discussed. It is shown that the dislocation reduction by SiNx interlayer deposition is influenced by dislocation density in the underlying GaN layers. The SiNx interlayer is very effective when the original dislocation density is high, while in the case of lower dislocation density the deposition of SiNx is not effective for crystal quality improvement. Although it is widely accepted that SiNx serves as a barrier for dislocation propagation, similarly to the enhanced lateral overgrowth method, it is shown that after masking the SiNx deposition cannot be the dominant dislocation reduction mechanism. The most probable mechanism is the annihilation of bended neighbouring dislocations during the coalescence of 3D islands. The SiNx layer cannot serve as a barrier for dislocations, since it is probably dissolved during the following GaN growth and dissolved Si atoms are incorporated into the above-grown GaN layer which stimulates the 3D island formation. Then the use of the SiNx interlayer for dislocation reduction is recommended only for the improvement of layers with a high dislocation density. On the other hand, the PL signal was strongly enhanced for both low and high dislocation density structures with the SiNx interlayer, suggesting that the interlayer might help to suppress the nonradiative recombination in subsequent GaN that is not related to the dislocation density, which remained the same. But its origin has to be studied further.