Add resize functionality