Configuration and gradual dynamics of prominence-related X-ray coronal cavities