update offset height when window size changes