removed AfterResize function based on prev css fix