fixing slide duplicate bug