prize slider function done for swipe and button contrls