removing old markup from first two gallery items and cleaning up js for gallery