Made before callback in addSlider more abstract, should work for both small and end imgs image texts once the end imgs text is setup properly.