fix scroll when on last image