Collapse of layer dimerization in the photo-induced hidden state of 1T-TaS2