Unisom gels vs pills

Jaimi • Jaimi. 28 years old. Herb is DH. 16 month old daughter Evelyn. Pregnant with #2. 9/23/17
Is there a difference? I've been taking the gels since that's all my drugstore had. But now I'm seeing there are pills? What should I be taking?