wrapped resize funciton in case of width change
updated mini file