Fixed problem with sequential layout

Specifically when sequential layout has Modifier a with originY != 0 and sequence surfaces with undefined width

also added ability to forcibly add/remove class by provided condition in toggleClass method