Total cross-sections for heavy flavor production at HERA