You can shorten the 4X4 to 12” if you are worried about space. It only needs to be long enough so you can drive up on it easily.
I carry full size spare, low profile platform jack, segment of 4X4, and socket with breaker bar on every long trip in my Model S. It has saved me three different...