switching background of flex-caption to rgba function