add event margins