handle offset class for horizontal forms