Updated slideviewer to dynamic size