Removed remove-margin function cause it is buggy and rendundant (kill-rectangle alone is good enough)