preserveAspectRatio="xMinYMin slice"
This code solved it. Thank you AmeliaBR.
EDIT:
If you are using Adobe Illustrator to export your SVG files, remember to uncheck "Responsive". Otherwise the sprite will not work as intended in Internet Explorer.