Well i found the problem; i don't know why but it works when i don't set a depth stencil view. Works for 1st slice anyway since i'm setting it directly to zero in shader.
Edit: I forgot to mention that in the geometry shader this:
triangle float4 input : POSITION
should be changed to this:
triangle float4 input : SV_POSITION