trying to replace lengths in px with percentages