Self-alignedTop-gate