Possibly likely what you are describing is an hernia
Hernia is the only swelling which disappears when you lye down.
worthwhile seeing an physician to see what is happening after examining you.
may help in differentiating it from an intra abdominal pathology.
hope this answers your query.
Wish you a speedy recovery.