changed the resize so that is doesn't mess up on mobile