Fixed bug where slide duration would not set correctly