Ajax Work

Built functions to load gallery previews with Ajax to make page loading
faster.