From my experience, you don't want anything hydrated going into hand sanitizer. The bodies can release air and water and as they decompose and it will end up discoloring the entire thing and making it look bad. It's good that the ants are already dried.
Here's a really helpful Wikihow link that taught me how to preserve bugs in hand sanitizer (and other ways): https://www.wikihow.com/Preserve-Insects
I would say you should find a small jar (preferably glass) that has a twist-off cap. Here's a link to the one I use: https://www.amazon.com/Bottles-Message-Storage-Containers-Aluminum/dp/B07BT98QDZ
I hope this helps! Let me know if you have any more questions!