refactored main loop module as a class with prototypes. scale slide increment dynamically with canvas size to help speed up slide interface on iOS portrait mode