with one gate at least partly formed in a trench