We theoretically give an infinite number of metastable crystal structures for the superconducting sulfur hydride HxS under pressure. Previously predicted crystalline phases of H2S and H3S have been thought to have important roles for the experimentally observed low and high Tc, respectively. The newly found structures are long-period modulated crystals where slab-like H2S and H3S regions intergrow in a microscopic scale. The extremely small formation enthalpy for the H2S-H3S boundary indicated with the first-principles calculations suggests possible alloying of these phases through formation of local H3S regions. The modulated structures and gradual alloying transformations between them explain peculiar pressure dependence of Tc in sulfur hydride observed experimentally, as well as could they prevail in the experimental samples under various compression schemes.