Kozai-Lidov mechanism inside retrograde mean motion resonances