calculate correct positoning when offset is used