Sliding between images in one function now