Fix resize

Fixed Resize: previous code erroneusly select  the active step in case of slides following one with substeps.

In fact due to the fact that (exiting from a slide with substeps) the last substep remains marked as active, the selection of the active step cannot use only the ".active" selector.