Fixed and refactored the code to highlight and revert the correct elements for the gallery item and archive-list item mouseovers