Added optional hyperlinks to captions

This patch allows to add hyperlinks to captions in the slider. This code was ported from another fork of an older version and adapted to the current master