added check to ensure that decoration does not overlap gadget border