Update jquery to 1.8 from 1.4, develop logic for gallery arrows