added auto resize without destroying paralax