add rendering margin