for DOMContentLoaded listener, moved the logic from updatePositions into the listener. modified change size logic so that only the image class was updated. the image class would apply css transform.