init function tungoslider editted