The worm you saw on glass is probably some Planaria or similar that lives in substrate and is part of the clean-up crew. If you suspect internal parasites your next step is to have a Herp veterinary do a fecal test. Sample should be fresh and you should contact them to ensure you handle sample properly.
Panacur or any other drug should be used under veterinary advice since the dosage can vary. Good luck!