updated single product view thumb function in ui.js