make animation optional and re-set position during resize