fix setting of slideWidth/slideHeight