fixing slide bug