adding dynamic horizontal image resizing element example