Precise photometric redshifts with narrow-band filters, quality cuts and their impact on the measured galaxy clustering