WIP: Refactoring ideas for slide position tracking feature

Some refactoring ideas for PR #181.