added horizontal and vertical margins