You need to take piroxicam and prepare a hydrogel with water. The formation of the hydrogel can be controlled by a significant increase in the viscosity of the solution.
Dear Yasameen Mutashar Khudhur, this is the subject of chromatography and fractionation techniques, such as column chromatography (if the gel is physically crosslinked, i e., if it is soluble). However, in your case, dialysis (bags/tubes) is the simplest way, followed by freeze-drying. You can also use soxhlet extractor with a selective solvent of the drug. My Regards