Hi, welcome to Justanswer.com
are you sure you have the correct part? a replacement should be near the same size right away. And if it is lift for the trunk it should be out all the way and compress when shut. If it is lift assitant strut it needs to be installed when closed.
hope this helps.______________PLEASE CLICK ON "ACCEPT" IF I WAS HELPFUL-OR IF YOU NEED FURTHER ASSISTANCE JUST ASK, THANKS