simple slider originally created for pdf files but can be used for any content