Adjust dialog borders