adding responsive conditions resize function and requiring lodash