Fix resize

Fixed selection of the active step in the cases of slides following one with substeps.

explanation: do to the fact that exiting from a slide with substeps, the last substeps remain marked as active, the selection of the active step cannot use only the ".active" selector.