I intentionally made the bed foundation larger than the mat so that the dog could step up like stairs.