Moved slide code to addon

ish. Will not work