add setter for horizontal and vertical spacing