Fix featured gallery images bug

Back to old function
Min .js