Competition of magnetocrystalline anisotropy of uranium layers and zigzag chains in UNi0.34Ge2