photo carousel now steps forward and backwards correctly