Adds dynamic resize