Updated sliding overlay image logic