fixed issue with 3 slides