functionality for a multiple media-queries