demo link added
resize function added