I have made a few cat & dog beds in the past and they all love them. What I do is make a cover (similar to a pillow case) with a zippered end.
I cut the bed foam (the egg carton looking stuff) to size & fill the cover with that.

It is really great for arthritic pets too.