added slider implementation and player helper functions