Started work on slide editor. Refactored code a bit.