add class to remove top margin from affected elements