Cant get swap image working with a dynamic resize

i have the pages

if i could keep the look and behaviour(besides res1ze) of work.html and add the resizing behaviour from the first 2 pages i woul love that.

also any thoughts on the dynamic resizing and attempts at “consistant positioning” through different window sizes