You don't compress them.
Easiest way to install them is to attach the shock to the door, open the door as wide as it will go, mock up where the other end meets the tub, transfer those measurements to the other side. Drill a hole. Stick your stud through the hole. Bolt down and then close the...