Combined position finding into CalcSlidePositions since opening the same file as READ seems to cause problems.