adding a buffer value so that the object does not flatten while scaling