I kind of sorted it out somewhat. It seems like it is a problem with the mesh. Not sure what problem it is. But when I remove some faces on either end and then slice it again, the problem will go away. What is weird is that if I scale the original file bigger or smaller, the problem can also go away...