Precise positioning of functional elements in nanopatterns by self-assembly door