cleanup
update el offset on window resize
store window as variable and refactor long if statement