Reworked to be able to handle multiple instances

The slider can now be initiated on mulitple instances at the same time.