Factor out common functions and reduce memory usage; Keep track of active Slidr instances