EUV emission, filament activation and magnetic fields in a slow-rise flare