Remove hidden class when updating dimensions