Dynamically resizing the designed sequence in sequence