Add a heuristic for setting slice position to instance number.

This is the second commit with this title, as it is a fix to a
previous commit.