added the border value while creating the overlay