Small pitch 3D devices