adjust media layout