Make your well or depression in the cookie large enough that the jam and icing aren't higher than the rim of the cookie. That will keep all of the jam and cream cheese goodness inside the cookie.