use offset class instead of pixels