document.addEventListener('DOMContentLoaded', function() {
    var carouselLabel = document.querySelector('label[for="team_mxt_use_carousel"]');
    var filterLabel = document.querySelector('label[for="team_mxt_use_filtering"]');
    var carouselPreview = document.getElementById('carouselPreview');
    var filterPreview = document.getElementById('filterPreview');

    carouselLabel.addEventListener('mouseover', function() {
        carouselPreview.style.display = 'block';
    });
    carouselLabel.addEventListener('mouseout', function() {
        carouselPreview.style.display = 'none';
    });

    filterLabel.addEventListener('mouseover', function() {
        filterPreview.style.display = 'block';
    });
    filterLabel.addEventListener('mouseout', function() {
        filterPreview.style.display = 'none';
    });
});
