adding height auto to img and video reset