Image slider stops working when using direct source