add resize preview